using System;

namespace Sustainalytics.ESGRatings.BusinessLogic.Computing.Exceptions
{
    public class UnknownIndicatorException : Exception
    {
        public UnknownIndicatorException(string code, Guid? companyId = null)
        {
            this.Code = code;
            this.CompanyId = companyId;
        }

        public Guid? CompanyId { get; set; }

        public string Code { get; set; }

        public override string Message
        {
            get
            {
                return string.Format("Unkown indicator with code {0} for company {1}", Code, CompanyId.GetValueOrDefault());
            }
        }
    }
}